import httpRequest from '@/request'
import appConfig from '@/config/index'
import qs from 'qs'

// 登录
export function login (params: any) {
  return httpRequest({
    url: `${appConfig.api}sysuser/login`,
    method: 'post',
    data: params,
    headers: {}
  })
}

// 修改密码
export function passwordUpdate (params: any) {
  return httpRequest({
    url: `${appConfig.api}sysuser/updatePwd`,
    method: 'post',
    data: params,
  })
}

// 用户信息
export function userInfo (params: any) {
  return httpRequest({
    url: `${appConfig.api}sysuser/userDetails`,
    method: 'post',
    data: params,
  })
}
